<template>
	<view class="account-security-main">
		<view class="return-title">
			<view class="return-pre" @click="returnPre">
				<uni-icons type="left" size="26" color="#000"></uni-icons>
			</view>
			<view class="title-security">
				账号与安全
			</view>
			<view></view>
		</view>

		<view class="first-view">
			<view class="phone-bind" @click="bindPhone">
				<view class="phone-text">
					手机号
				</view>
				<view class="iocn-phone-value">
					<view class="phone-value">
						{{phone}}
					</view>
					<view class="right-icon">
						<uni-icons type="right" size="20" color="#909090"></uni-icons>
					</view>
				</view>
			</view>
			<divider-line :width="100" :color="'#e2e2e2'"></divider-line>
			<view class="phone-bind" @click="changePassword">
				<view class="phone-text">
					登录密码
				</view>
				<view class="iocn-phone-value">
					<view class="phone-value">
						{{password}}
					</view>
					<view class="right-icon">
						<uni-icons type="right" size="20" color="#909090"></uni-icons>
					</view>
				</view>
			</view>
		</view>

		<view class="second-view">
			<view class="other-bind" @click="bingdWechat">
				<view class="phone-text">
					微信账号
				</view>
				<view class="iocn-phone-value">
					<view class="phone-value">
						{{wechatAccount}}
					</view>
					<view class="right-icon">
						<uni-icons type="right" size="20" color="#909090"></uni-icons>
					</view>
				</view>
			</view>
			<divider-line :width="100" :color="'#e2e2e2'"></divider-line>
			<view class="other-bind" @click="bingdQQ">
				<view class="phone-text">
					QQ账号
				</view>
				<view class="iocn-phone-value">
					<view class="phone-value">
						{{qqAccount}}
					</view>
					<view class="right-icon">
						<uni-icons type="right" size="20" color="#909090"></uni-icons>
					</view>
				</view>
			</view>
		</view>


		<view class="log-off" @click="logOff">
			<view class="log-off-text">
				注销账号
			</view>
			<view class="right-icon">
				<uni-icons type="right" size="20" color="#909090"></uni-icons>
			</view>
		</view>

	</view>
</template>

<script>
	import DividerLine from '@/components/common-components/DividerLine.vue'
	export default {
		components: {
			DividerLine
		},
		data() {
			return {
				phone: '+86 183****8391', // 绑定的手机号
				password: '******', // 登录密码
				wechatAccount: '未绑定', // 微信账号
				qqAccount: '未绑定', // QQ账号
			};
		},
		methods: {
			bindPhone(){
				uni.showToast({
					title: '敬请期待',
					icon: 'none'
				})
			},
			changePassword(){
				uni.showToast({
					title: '敬请期待',
					icon: 'none'
				})
			},
			bingdWechat(){
				uni.showToast({
					title: '敬请期待',
					icon: 'none'
				})
			},
			bingdQQ(){
				uni.showToast({
					title: '敬请期待',
					icon: 'none'
				})
			},
			logOff(){
				uni.showToast({
					title: '敬请期待',
					icon: 'none'
				})
			},
			returnPre(){
				uni.navigateBack()
			},
		},
	};
</script>

<style lang="scss" scoped>
	.account-security-main {
		height: 100vh;
		background-color: #f8f8f8;

		.return-title {
			width: 90%;
			margin-left: auto;
			margin-right: auto;
			padding-top: 30px;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.title-security {
				font-size: 40rpx;
			}
		}

		.first-view {
			width: 80%;
			margin-left: auto;
			margin-right: auto;
			margin-top: 40rpx;
			display: flex;
			flex-direction: column;
			background-color: #fff;
			border-radius: 20rpx;
			padding: 20px;

			.phone-bind {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.phone-text {
					font-size: 17px;
					letter-spacing: 1px;
					display: flex;
					align-items: center;
					justify-content: center;
				}

				.iocn-phone-value {
					display: flex;
					align-items: center;

					.phone-value {
						color: #a8a8a8;
					}

					.right-icon {
						display: flex;
						align-items: center;
					}
				}
			}
		}

		.second-view {
			width: 80%;
			margin-left: auto;
			margin-right: auto;
			margin-top: 40rpx;
			display: flex;
			flex-direction: column;
			background-color: #fff;
			border-radius: 20rpx;
			padding: 20px;

			.other-bind {
				display: flex;
				justify-content: space-between;
				align-items: center;

				.phone-text {
					font-size: 17px;
					letter-spacing: 1px;
					display: flex;
					flex-direction: column;
					justify-content: center;
				}

				.iocn-phone-value {
					display: flex;
					align-items: center;

					.phone-value {
						color: #a8a8a8;
					}

					.right-icon {
						display: flex;
						align-items: center;
					}
				}
			}
		}

		.log-off {
			width: 80%;
			margin-left: auto;
			margin-right: auto;
			margin-top: 40rpx;
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
			background-color: #fff;
			border-radius: 20rpx;
			padding: 20px;

			.log-off-text{
				font-size: 17px;
				letter-spacing: 1px;
				display: flex;
				flex-direction: column;
				justify-content: center;
			}
			.right-icon{
				display: flex;
				align-items: center;
			}
		}
	}
</style>